<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>招聘列表 | 职场社交</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #2563eb;
            --primary-light: #eff6ff;
            --secondary: #0f766e;
            --dark: #1e293b;
            --gray: #64748b;
            --light-gray: #f1f5f9;
            --border-gray: #cbd5e1;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .main-container {
            padding: 2rem 0;
        }
        
        .page-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }
        
        /* 筛选区域样式 */
        .filter-container {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            margin-bottom: 1.5rem;
            overflow: hidden;
        }
        
        .filter-section {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .filter-section:last-child {
            border-bottom: none;
        }
        
        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            cursor: pointer;
        }
        
        .filter-title {
            font-weight: 600;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-collapse-icon {
            transition: transform 0.3s;
        }
        
        .filter-collapse-icon.open {
            transform: rotate(180deg);
        }
        
        .filter-content {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
        }
        
        /* 筛选标签样式 */
        .filter-tag {
            background-color: var(--light-gray);
            color: var(--dark);
            padding: 0.35rem 0.85rem;
            border-radius: 30px;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }
        
        .filter-tag:hover {
            background-color: var(--primary-light);
        }
        
        .filter-tag.active {
            background-color: var(--primary);
            color: white;
        }
        
        .filter-tag i {
            font-size: 0.8rem;
        }
        
        /* 搜索框样式 */
        .search-container {
            position: relative;
            margin-bottom: 1.5rem;
        }
        
        .search-input {
            width: 100%;
            padding: 0.75rem 1.25rem 0.75rem 2.5rem;
            border-radius: 30px;
            border: 1px solid var(--border-gray);
            font-size: 1rem;
            transition: all 0.3s;
        }
        
        .search-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            outline: none;
        }
        
        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        /* 高级筛选器样式 */
        .advanced-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .form-select {
            padding: 0.5rem 1rem;
            border-radius: 6px;
            border: 1px solid var(--border-gray);
            font-size: 0.9rem;
        }
        
        /* 结果统计样式 */
        .results-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: var(--gray);
        }
        
        .sort-options {
            display: flex;
            gap: 1rem;
        }
        
        .sort-option {
            color: var(--gray);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .sort-option.active {
            color: var(--primary);
            font-weight: 500;
        }
        
        /* 职位卡片样式 */
        .job-card {
            background-color: white;
            border-radius: 8px;
            padding: 1.25rem;
            margin-bottom: 1rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .job-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
        }
        
        .job-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.75rem;
        }
        
        .job-company {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .company-logo {
            width: 48px;
            height: 48px;
            border-radius: 6px;
            object-fit: cover;
        }
        
        .company-info {
            display: flex;
            flex-direction: column;
        }
        
        .company-name {
            font-weight: 600;
            margin-bottom: 0.1rem;
        }
        
        .company-industry {
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .job-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--gray);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.9rem;
            transition: color 0.2s;
        }
        
        .action-btn:hover {
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: #ef4444;
        }
        
        .action-btn.saved {
            color: var(--primary);
        }
        
        .job-title {
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 0.5rem;
            text-decoration: none;
        }
        
        .job-title:hover {
            text-decoration: underline;
        }
        
        .job-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.25rem;
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
        }
        
        .job-meta-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .job-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }
        
        .job-tag {
            background-color: var(--light-gray);
            color: var(--gray);
            padding: 0.25rem 0.65rem;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        .job-desc {
            color: var(--dark);
            font-size: 0.95rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .job-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .job-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .author-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .job-stats {
            display: flex;
            gap: 1rem;
        }
        
        .job-stat {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        /* 分页样式 */
        .pagination-container {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }
        
        .page-item.active .page-link {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        .page-link {
            color: var(--dark);
        }
        
        .page-link:hover {
            color: var(--primary);
        }
        
        /* 移动端适配 */
        @media (max-width: 768px) {
            .advanced-filters {
                flex-direction: column;
            }
            
            .form-select {
                width: 100%;
            }
            
            .job-header {
                flex-direction: column;
                gap: 1rem;
            }
            
            .job-actions {
                justify-content: flex-start;
            }
            
            .job-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg py-3">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-briefcase"></i>
                职场社交
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto gap-4">
                    <li class="nav-item"><a href="#" class="nav-link">首页</a></li>
                    <li class="nav-item"><a href="#" class="nav-link active">职位</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">公司</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">薪资</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">社区</a></li>
                    <li class="nav-item">
                        <a href="#" class="nav-link" title="个人中心">
                            <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="rounded-circle" style="width: 32px; height: 32px;">
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <div class="container main-container">
        <h1 class="page-title">招聘职位</h1>
        
        <!-- 搜索框 -->
        <div class="search-container">
            <i class="fas fa-search search-icon"></i>
            <input type="text" class="search-input" placeholder="搜索职位、公司或关键词...">
        </div>
        
        <!-- 高级筛选下拉框 -->
        <div class="advanced-filters">
            <select class="form-select" style="width: auto;">
                <option>全部行业</option>
                <option>互联网/IT</option>
                <option>金融/银行</option>
                <option>教育培训</option>
                <option>医疗健康</option>
                <option>文化传媒</option>
            </select>
            
            <select class="form-select" style="width: auto;">
                <option>全部职位类型</option>
                <option>技术开发</option>
                <option>产品经理</option>
                <option>设计创意</option>
                <option>市场运营</option>
                <option>销售商务</option>
            </select>
            
            <select class="form-select" style="width: auto;">
                <option>全部工作经验</option>
                <option>应届毕业生</option>
                <option>1-3年</option>
                <option>3-5年</option>
                <option>5-10年</option>
                <option>10年以上</option>
            </select>
            
            <select class="form-select" style="width: auto;">
                <option>全部薪资范围</option>
                <option>3k以下</option>
                <option>3k-5k</option>
                <option>5k-10k</option>
                <option>10k-15k</option>
                <option>15k-20k</option>
                <option>20k以上</option>
            </select>
            
            <select class="form-select" style="width: auto;">
                <option>全部地区</option>
                <option>北京</option>
                <option>上海</option>
                <option>广州</option>
                <option>深圳</option>
                <option>杭州</option>
                <option>成都</option>
            </select>
        </div>
        
        <!-- 可折叠的筛选条件区域 -->
        <div class="filter-container">
            <!-- 工作模式筛选 -->
            <div class="filter-section">
                <div class="filter-header" onclick="toggleFilter(this)">
                    <div class="filter-title">
                        <i class="fas fa-briefcase"></i>
                        工作模式
                    </div>
                    <i class="fas fa-chevron-down filter-collapse-icon"></i>
                </div>
                <div class="filter-content">
                    <button class="filter-tag active">
                        全部
                    </button>
                    <button class="filter-tag">
                        <i class="fas fa-home"></i>
                        全职
                    </button>
                    <button class="filter-tag">
                        <i class="fas fa-clock"></i>
                        兼职
                    </button>
                    <button class="filter-tag">
                        <i class="fas fa-laptop-house"></i>
                        远程
                    </button>
                    <button class="filter-tag">
                        <i class="fas fa-graduation-cap"></i>
                        实习
                    </button>
                </div>
            </div>
            
            <!-- 学历要求筛选 -->
            <div class="filter-section">
                <div class="filter-header" onclick="toggleFilter(this)">
                    <div class="filter-title">
                        <i class="fas fa-graduation-cap"></i>
                        学历要求
                    </div>
                    <i class="fas fa-chevron-down filter-collapse-icon"></i>
                </div>
                <div class="filter-content">
                    <button class="filter-tag active">
                        全部
                    </button>
                    <button class="filter-tag">
                        大专及以上
                    </button>
                    <button class="filter-tag">
                        本科及以上
                    </button>
                    <button class="filter-tag">
                        硕士及以上
                    </button>
                    <button class="filter-tag">
                        博士及以上
                    </button>
                </div>
            </div>
            
            <!-- 公司规模筛选 -->
            <div class="filter-section">
                <div class="filter-header" onclick="toggleFilter(this)">
                    <div class="filter-title">
                        <i class="fas fa-building"></i>
                        公司规模
                    </div>
                    <i class="fas fa-chevron-down filter-collapse-icon"></i>
                </div>
                <div class="filter-content">
                    <button class="filter-tag active">
                        全部
                    </button>
                    <button class="filter-tag">
                        初创公司(1-20人)
                    </button>
                    <button class="filter-tag">
                        小型公司(20-99人)
                    </button>
                    <button class="filter-tag">
                        中型公司(100-499人)
                    </button>
                    <button class="filter-tag">
                        大型公司(500-999人)
                    </button>
                    <button class="filter-tag">
                        集团企业(1000人以上)
                    </button>
                </div>
            </div>
            
            <!-- 公司性质筛选 -->
            <div class="filter-section">
                <div class="filter-header" onclick="toggleFilter(this)">
                    <div class="filter-title">
                        <i class="fas fa-balance-scale"></i>
                        公司性质
                    </div>
                    <i class="fas fa-chevron-down filter-collapse-icon"></i>
                </div>
                <div class="filter-content">
                    <button class="filter-tag active">
                        全部
                    </button>
                    <button class="filter-tag">
                        民营企业
                    </button>
                    <button class="filter-tag">
                        国有企业
                    </button>
                    <button class="filter-tag">
                        外资企业
                    </button>
                    <button class="filter-tag">
                        合资企业
                    </button>
                    <button class="filter-tag">
                        上市公司
                    </button>
                    <button class="filter-tag">
                        事业单位
                    </button>
                </div>
            </div>
            
            <!-- 特色福利筛选 -->
            <div class="filter-section">
                <div class="filter-header" onclick="toggleFilter(this)">
                    <div class="filter-title">
                        <i class="fas fa-gift"></i>
                        特色福利
                    </div>
                    <i class="fas fa-chevron-down filter-collapse-icon"></i>
                </div>
                <div class="filter-content">
                    <button class="filter-tag">
                        <i class="fas fa-car"></i>
                        交通补贴
                    </button>
                    <button class="filter-tag">
                        <i class="fas fa-utensils"></i>
                        餐饮补贴
                    </button>
                    <button class="filter-tag">
                        <i class="fas fa-home"></i>
                        住房补贴
                    </button>
                    <button class="filter-tag">
                        <i class="fas fa-plane"></i>
                        带薪年假
                    </button>
                    <button class="filter-tag">
                        <i class="fas fa-birthday-cake"></i>
                        生日福利
                    </button>
                    <button class="filter-tag">
                        <i class="fas fa-heartbeat"></i>
                        体检福利
                    </button>
                    <button class="filter-tag">
                        <i class="fas fa-laptop"></i>
                        设备补贴
                    </button>
                    <button class="filter-tag">
                        <i class="fas fa-graduation-cap"></i>
                        学习培训
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 结果统计和排序 -->
        <div class="results-stats">
            <div>找到 <strong>1,258</strong> 个职位</div>
            <div class="sort-options">
                <div class="sort-option active">
                    <i class="fas fa-sort-amount-down"></i>
                    推荐排序
                </div>
                <div class="sort-option">
                    <i class="fas fa-clock"></i>
                    最新发布
                </div>
                <div class="sort-option">
                    <i class="fas fa-fire"></i>
                    热门程度
                </div>
                <div class="sort-option">
                    <i class="fas fa-money-bill-wave"></i>
                    薪资高低
                </div>
            </div>
        </div>
        
        <!-- 职位列表 -->
        <div class="job-list">
            <!-- 职位1 -->
            <div class="job-card">
                <div class="job-header">
                    <div class="job-company">
                        <img src="https://picsum.photos/100/100?random=10" alt="科技公司logo" class="company-logo">
                        <div class="company-info">
                            <div class="company-name">未来科技有限公司</div>
                            <div class="company-industry">互联网/IT · 500-999人</div>
                        </div>
                    </div>
                    <div class="job-actions">
                        <button class="action-btn">
                            <i class="far fa-thumbs-up"></i>
                            <span>128</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
                
                <a href="#" class="job-title">高级前端开发工程师</a>
                
                <div class="job-meta">
                    <div class="job-meta-item">
                        <i class="fas fa-map-marker-alt"></i>
                        北京市海淀区
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-money-bill-wave"></i>
                        25k-35k·14薪
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-briefcase"></i>
                        3-5年
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-graduation-cap"></i>
                        本科及以上
                    </div>
                    <div class="job-meta-item">
                        <i class="far fa-clock"></i>
                        2小时前
                    </div>
                </div>
                
                <div class="job-tags">
                    <span class="job-tag">HTML5</span>
                    <span class="job-tag">CSS3</span>
                    <span class="job-tag">JavaScript</span>
                    <span class="job-tag">React</span>
                    <span class="job-tag">Vue</span>
                </div>
                
                <p class="job-desc">
                    我们正在寻找一位经验丰富的前端开发工程师加入我们的团队，负责公司核心产品的前端架构设计和开发工作。你将与产品经理和后端工程师紧密合作，打造高质量的用户体验。要求精通现代前端框架和工具，有大型项目开发经验者优先。
                </p>
                
                <div class="job-footer">
                    <div class="job-author">
                        <img src="https://picsum.photos/100/100?random=20" alt="招聘负责人" class="author-avatar">
                        <span>李招聘 · 技术部经理</span>
                    </div>
                    <div class="job-stats">
                        <div class="job-stat">
                            <i class="fas fa-eye"></i>
                            <span>1.2k</span>
                        </div>
                        <div class="job-stat">
                            <i class="far fa-comment"></i>
                            <span>48</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 职位2 -->
            <div class="job-card">
                <div class="job-header">
                    <div class="job-company">
                        <img src="https://picsum.photos/100/100?random=11" alt="设计公司logo" class="company-logo">
                        <div class="company-info">
                            <div class="company-name">创意设计工作室</div>
                            <div class="company-industry">设计/创意 · 20-99人</div>
                        </div>
                    </div>
                    <div class="job-actions">
                        <button class="action-btn liked">
                            <i class="fas fa-thumbs-up"></i>
                            <span>95</span>
                        </button>
                        <button class="action-btn saved">
                            <i class="fas fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
                
                <a href="#" class="job-title">UI/UX设计师</a>
                
                <div class="job-meta">
                    <div class="job-meta-item">
                        <i class="fas fa-map-marker-alt"></i>
                        上海市静安区
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-money-bill-wave"></i>
                        18k-25k·13薪
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-briefcase"></i>
                        1-3年
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-graduation-cap"></i>
                        本科及以上
                    </div>
                    <div class="job-meta-item">
                        <i class="far fa-clock"></i>
                        5小时前
                    </div>
                </div>
                
                <div class="job-tags">
                    <span class="job-tag">UI设计</span>
                    <span class="job-tag">UX设计</span>
                    <span class="job-tag">Figma</span>
                    <span class="job-tag">交互设计</span>
                </div>
                
                <p class="job-desc">
                    我们需要一位有创意的UI/UX设计师，负责产品界面设计和用户体验优化。要求有良好的审美能力和用户思维，能够将产品需求转化为优秀的设计方案。
                </p>
                
                <div class="job-footer">
                    <div class="job-author">
                        <img src="https://picsum.photos/100/100?random=21" alt="招聘负责人" class="author-avatar">
                        <span>王设计 · 设计总监</span>
                    </div>
                    <div class="job-stats">
                        <div class="job-stat">
                            <i class="fas fa-eye"></i>
                            <span>856</span>
                        </div>
                        <div class="job-stat">
                            <i class="far fa-comment"></i>
                            <span>32</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 职位3 -->
            <div class="job-card">
                <div class="job-header">
                    <div class="job-company">
                        <img src="https://picsum.photos/100/100?random=12" alt="金融公司logo" class="company-logo">
                        <div class="company-info">
                            <div class="company-name">诚信金融服务有限公司</div>
                            <div class="company-industry">金融/银行 · 1000人以上</div>
                        </div>
                    </div>
                    <div class="job-actions">
                        <button class="action-btn">
                            <i class="far fa-thumbs-up"></i>
                            <span>76</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
                
                <a href="#" class="job-title">产品经理（支付方向）</a>
                
                <div class="job-meta">
                    <div class="job-meta-item">
                        <i class="fas fa-map-marker-alt"></i>
                        深圳市福田区
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-money-bill-wave"></i>
                        20k-30k·14薪
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-briefcase"></i>
                        3-5年
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-graduation-cap"></i>
                        本科及以上
                    </div>
                    <div class="job-meta-item">
                        <i class="far fa-clock"></i>
                        昨天
                    </div>
                </div>
                
                <div class="job-tags">
                    <span class="job-tag">产品经理</span>
                    <span class="job-tag">支付</span>
                    <span class="job-tag">金融科技</span>
                    <span class="job-tag">需求分析</span>
                </div>
                
                <p class="job-desc">
                    负责支付相关产品的规划和设计，制定产品 roadmap，推动产品落地和迭代。需要有支付领域经验，熟悉各类支付渠道和风控体系。
                </p>
                
                <div class="job-footer">
                    <div class="job-author">
                        <img src="https://picsum.photos/100/100?random=22" alt="招聘负责人" class="author-avatar">
                        <span>张产品 · 产品总监</span>
                    </div>
                    <div class="job-stats">
                        <div class="job-stat">
                            <i class="fas fa-eye"></i>
                            <span>723</span>
                        </div>
                        <div class="job-stat">
                            <i class="far fa-comment"></i>
                            <span>28</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 分页 -->
        <div class="pagination-container">
            <nav aria-label="Page navigation">
                <ul class="pagination">
                    <li class="page-item disabled">
                        <a class="page-link" href="#" tabindex="-1" aria-disabled="true">
                            <i class="fas fa-chevron-left"></i>
                        </a>
                    </li>
                    <li class="page-item active"><a class="page-link" href="#">1</a></li>
                    <li class="page-item"><a class="page-link" href="#">2</a></li>
                    <li class="page-item"><a class="page-link" href="#">3</a></li>
                    <li class="page-item"><a class="page-link" href="#">4</a></li>
                    <li class="page-item"><a class="page-link" href="#">5</a></li>
                    <li class="page-item">
                        <a class="page-link" href="#">
                            <i class="fas fa-chevron-right"></i>
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 筛选区域折叠/展开功能
        function toggleFilter(element) {
            const content = element.nextElementSibling;
            const icon = element.querySelector('.filter-collapse-icon');
            
            if (content.style.display === 'none' || !content.style.display) {
                content.style.display = 'flex';
                icon.classList.add('open');
            } else {
                content.style.display = 'none';
                icon.classList.remove('open');
            }
        }
        
        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            // 筛选标签点击事件
            const filterTags = document.querySelectorAll('.filter-tag');
            filterTags.forEach(tag => {
                tag.addEventListener('click', function() {
                    // 如果点击的是"全部"标签，取消其他标签的选中状态
                    if (this.textContent.trim() === '全部') {
                        const siblingTags = this.parentElement.querySelectorAll('.filter-tag');
                        siblingTags.forEach(sibling => {
                            sibling.classList.remove('active');
                        });
                        this.classList.add('active');
                    } else {
                        // 如果点击的不是"全部"标签，取消"全部"标签的选中状态
                        const allTag = this.parentElement.querySelector('.filter-tag:first-child');
                        if (allTag.textContent.trim() === '全部') {
                            allTag.classList.remove('active');
                        }
                        // 切换当前标签的选中状态
                        this.classList.toggle('active');
                    }
                });
            });
            
            // 排序选项点击事件
            const sortOptions = document.querySelectorAll('.sort-option');
            sortOptions.forEach(option => {
                option.addEventListener('click', function() {
                    sortOptions.forEach(opt => opt.classList.remove('active'));
                    this.classList.add('active');
                });
            });
            
            // 点赞功能
            const likeButtons = document.querySelectorAll('.action-btn:has(.fa-thumbs-up)');
            likeButtons.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        // 增加点赞数
                        const countEl = this.querySelector('span');
                        countEl.textContent = parseInt(countEl.textContent) + 1;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        // 减少点赞数
                        const countEl = this.querySelector('span');
                        countEl.textContent = parseInt(countEl.textContent) - 1;
                    }
                });
            });
            
            // 收藏功能
            const saveButtons = document.querySelectorAll('.action-btn:has(.fa-bookmark)');
            saveButtons.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('saved');
                    const icon = this.querySelector('i');
                    if (this.classList.contains('saved')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                    }
                });
            });
        });
    </script>
</body>
</html>
    
